<extend name="Public/common" />
<block name="body">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>编辑用户信息</h5>
                </div>
                <div class="ibox-content">
                    <div class="form-horizontal"> 
                    	<form action="__APP__/member/editmember" method="post">
                    	<input type="hidden" name="uid" value="{$member.uid}" />
                    	<input type="hidden" name="pid" value="{$member.pid}" />
                    	<input type="hidden" name="last_login_time" value="{$member.last_login_time}" />
                        <div class="form-group">
                            <label class="col-sm-2 control-label">账户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" value="{$member.name}" placeholder="请填写新账户名" id="name">
                            </div>
                        </div>
                        <!--<div class="form-group">-->
                        	<!--<label class="col-sm-2 control-label">密码</label>-->
                            <!--<div class="col-sm-10">                           -->
                            	<input type="hidden" class="form-control" name="pwd" value="{$member.pwd}" placeholder="请填写新密码" id="password">
                            <!--</div>-->
                        <!--</div>-->
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">昵称</label>                           
                               	<div class="col-sm-10">
                                	<input type="text" class="form-control" name="basename" value="{$member.basename}" placeholder="请填写新昵称" id="email">
                                </div>                          
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">邮箱</label>                           
                               	<div class="col-sm-10">
                                	<input type="text" class="form-control" name="email" value="{$member.email}" placeholder="请填写新邮箱" id="email">
                                </div>                          
                        </div>
                        <div class="hr-line-dashed"></div>
                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">手机号</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="phone" value="{$member.phone}" placeholder="请填写新手机号" id="phone">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        
                        <div class="form-group">
                            <label class="col-sm-2 control-label">qq</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="qq" value="{$member.qq}" placeholder="请填写新qq号" id="qq">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">账号状态</label>
                            <div class="col-sm-10">
                                <label><input type="radio" value="0" name="status" <if condition="($member['status'] eq 0)"> checked="checked" </if> > <i></i> 启用</label>
                                <label><input type="radio" value="1" name="status" <if condition="($member['status'] eq 1)"> checked="checked" </if> > <i></i> 禁用</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">通知设置</label>
                            <div class="col-sm-10">
                                <select name="tips">
                                    <option value="dx">短信通知</option>
                                    <option value="yj">邮件通知</option>
                                    <option value="xt">提示通知</option>
                                    <option value="dx,yj,xt">短信、邮件、提示通知</option>
                                    <option value="dx,yj">短信、邮件通知</option>
                                    <option value="dx,xt">短信、提示通知</option>
                                    <option value="yj,xt">邮件、提示通知</option>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        
                    	<div class="form-group">
                        	<div class="col-sm-4 col-sm-offset-2">
                             	<input type="submit" value="提交"/>
                    	        <input type="reset" />
                        	</div> 
                    	</div>                    	
                    </form> 		
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    //定义全局变量
    var GV = {
        member_editmember : "{:U('Member/editMember')}",
        member_id : "{$member.uid}"
    };
</script>
<script src="__JS__/http/member/editmember.js"></script>
<script src="__JS__/http/upload.js"></script>
</block>

